package com.liao.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.liao.dao.PatientAggStatDaoImpl;
import com.liao.entity.PatientAggStat;

import java.util.List;

public class PatientAggStatService {
    PatientAggStatDaoImpl dao=new PatientAggStatDaoImpl();
    public String findAll() throws JsonProcessingException {
        ObjectMapper objectMapper = new ObjectMapper();
        return objectMapper.writeValueAsString(dao.findAll());
    }
}
